package com.yungu.swift.system.sys.model.dto;

import com.yungu.swift.base.model.BaseDto;


/**
 * 用户角色表
 **/

public class SysRoleResourceDto extends BaseDto {

    /**
     * 角色标识符
     **/
    private String roleUuid;

    /**
     * 资源标识符
     **/
    private String resourceUuid;

    public String getRoleUuid() {
        return roleUuid;
    }

    public void setRoleUuid(String roleUuid) {
        this.roleUuid = roleUuid;
    }

    public String getResourceUuid() {
        return resourceUuid;
    }

    public void setResourceUuid(String resourceUuid) {
        this.resourceUuid = resourceUuid;
    }

    /**
     * update by cuixiuyin on 2018/08/10 用于权限管理的时候使用
     *
     * @param obj
     * @return
     */
    @Override
    public boolean equals(Object obj) {
        SysRoleResourceDto resourceDto = (SysRoleResourceDto) obj;
        if (this.resourceUuid.equals(resourceDto.getResourceUuid())) {
            return true;
        }
        return false;
    }
}
